// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addApplyInterfaceInfo POST /api/applyInterfaceInfo/add */
export async function addApplyInterfaceInfoUsingPost(
  body: API.ApplyInterfaceInfoAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponselong>('/api/applyInterfaceInfo/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteApplyInterfaceInfo POST /api/applyInterfaceInfo/delete */
export async function deleteApplyInterfaceInfoUsingPost(
  body: API.IdRequest[],
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseboolean>('/api/applyInterfaceInfo/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getApplyInterfaceInfoById GET /api/applyInterfaceInfo/get */
export async function getApplyInterfaceInfoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getApplyInterfaceInfoByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseApplyInterfaceInfo>('/api/applyInterfaceInfo/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listApplyInterfaceInfo GET /api/applyInterfaceInfo/list */
export async function listApplyInterfaceInfoUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listApplyInterfaceInfoUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListApplyInterfaceInfo>('/api/applyInterfaceInfo/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listApplyInterfaceInfoByPage GET /api/applyInterfaceInfo/list/page */
export async function listApplyInterfaceInfoByPageUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listApplyInterfaceInfoByPageUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageApplyInterfaceInfoVO>('/api/applyInterfaceInfo/list/page', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listApplyInterfaceInfoCountByPage GET /api/applyInterfaceInfo/list/page/complex_mes */
export async function listApplyInterfaceInfoCountByPageUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseApplyInterfaceComplexVO>(
    '/api/applyInterfaceInfo/list/page/complex_mes',
    {
      method: 'GET',
      ...(options || {}),
    },
  );
}

/** listApplyInterfaceInfoMainMesByPage GET /api/applyInterfaceInfo/list/page/detail_mes */
export async function listApplyInterfaceInfoMainMesByPageUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listApplyInterfaceInfoMainMesByPageUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageApplyInterfaceInfoVO>(
    '/api/applyInterfaceInfo/list/page/detail_mes',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** updateApplyStatusAndAddUserInterface PUT /api/applyInterfaceInfo/status */
export async function updateApplyStatusAndAddUserInterfaceUsingPut(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.updateApplyStatusAndAddUserInterfaceUsingPUTParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseboolean>('/api/applyInterfaceInfo/status', {
    method: 'PUT',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** updateApplyInterfaceInfo POST /api/applyInterfaceInfo/update */
export async function updateApplyInterfaceInfoUsingPost(
  body: API.ApplyInterfaceInfoUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseboolean>('/api/applyInterfaceInfo/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
